//
//  JournalSecondViewController.m
//  BSLCar
//
//  Created by 梁毅 on 15/5/22.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "JournalSecondViewController.h"

@interface JournalSecondViewController ()

@end

@implementation JournalSecondViewController
- (void)dealloc
{
    [_str release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"杂志详情";
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] init];
    item.title = @"返回";
    self.navigationItem.backBarButtonItem = item;
    [item release];
    
    self.view.backgroundColor = [UIColor whiteColor];
    webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, self.view.frame.size.height)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@", self.str]]];
        [webView loadRequest:request];
    webView.scalesPageToFit = YES;
    webView.tintAdjustmentMode = UIViewTintAdjustmentModeAutomatic;
    [self.view addSubview:webView];
    [self.navigationItem.rightBarButtonItem release];
    [webView release];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
